<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>00.Basic-Usage</title>
</head>
<body>
<!-- 0.https://www.npmjs.com/package/highlight.js
npm下载的是nodejs版的
你想直接在浏览器端使用,请看↓
 -->

<!-- 1.在线链接
https://highlightjs.readthedocs.io/en/latest/readme.html#fetch-via-cdn
https://highlightjs.org/download/
-->
<!-- 1.1cdnjs -->
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">-->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/highlight.min.js"></script>-->
<!-- and it's easy to individually load additional languages -->
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/languages/go.min.js"></script>-->
<!-- 1.2jsdelivr -->
<!--<link rel="stylesheet"-->
<!--      href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/styles/default.min.css">-->
<!--<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/highlight.min.js"></script>-->
<!-- and it's easy to individually load additional languages -->
<!--<script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.2.0/build/languages/go.min.js"></script>-->
<!---->
<!-- 1.3unpkg -->
<link rel="stylesheet" href="https://unpkg.com/@highlightjs/cdn-assets@11.2.0/styles/default.min.css">
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.2.0/highlight.min.js"></script>
<!-- and it's easy to individually load additional languages -->
<script src="https://unpkg.com/@highlightjs/cdn-assets@11.2.0/languages/go.min.js"></script>
<!--
Note: The CDN-hosted highlight.min.js package doesn’t bundle every language. It would be very large. You can find our list of “common” languages that we bundle by default on our download page.
+ https://highlightjs.org/download/
  - 下载页面可以快速生成一个定制的单文件迷你包，只包含您想要的语言。
-->

<!-- 2. 官方cdn资源发布地址
https://github.com/highlightjs/cdn-release
https://www.npmjs.com/package/@highlightjs/cdn-assets
-->


<!-- 3.Build from Source
下从git官方仓库下载 https://github.com/highlightjs/highlight.js

然后：
node tools/build.js -t node
node tools/build.js -t browser :common
node tools/build.js -t cdn :common

https://highlightjs.readthedocs.io/en/latest/building-testing.html
-->
</body>
</html>
